package cn.wen233.spring.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * spring 相关配置类
 *
 * @author wenei
 * @date 2021-10-26 19:55
 */
@ConfigurationProperties("sunglow.server.support")
public class SunglowProperties {

    private String ip = "127.0.0.1";

    private int port = 11112;

    private String namespaceId = "public";

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getNamespaceId() {
        return namespaceId;
    }

    public void setNamespaceId(String namespaceId) {
        this.namespaceId = namespaceId;
    }
}
